package cn.kgc.mapper;

import cn.kgc.pojo.User;
import cn.kgc.pojo.UserExcesion;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);



    /**
     * 登录验证
     */
    User login(@Param("userCode") String userCode, @Param("userPassword") String userPassword);


    /**
     * 主页总查询
     */
    List<UserExcesion> allQuery(String softName,String appStatus,String platForm
            ,String tiaojian1,String tiaojian2,String tiaojian3);


}